<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/html">
<head>
    <title>@yield('title')</title>
    <meta name="_token" content="{{ csrf_token() }}"/>
    <link rel="stylesheet" type="text/css" href="/uploadify/uploadify.css">
    <link href="css/css.css" rel="stylesheet" type="text/css" />
    {{ \App\Common\Func::isLogin() }}
</head>
<body>
<section class="topbeijing">
    <div class="daohan">
        <div class="daohan_left">
            <div class="wenzi"><a href="/">文字直播间</a></div>
            <div class="caidansy"><a href="/">首页</a></div>
            <div class="caidanfx"><a href="#">发现</a></div>
            <div class="caidanjrcl"><a href="#">今日策略</a></div>
            <div class="caidanmrcl"><a href="#">每日策略</a></div>
        </div>
        <div class="daohan_right">
            <div class="shousuolan"><input name="" type="text" /></div>
            <div class="huojian"></div>
            <div class="caidanyh"></div>
            <div class="dhf">
                <a href="/user">
                    @if(\App\Common\Func::User())
                    {{ \App\Common\Func::User()['name'] }}
                    @endif
                </a>
            </div>
        </div>
    </div>
</section>
@yield('content')
<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/layer/2.1/layer.js"></script>
<script type="text/javascript">
    $("#logout").click(function(){
        layer.confirm('确实要退出登录吗？', function () {
            window.top.location.href = "/login?action=logout";
        });
    });
</script>
@yield('footer')
</body>
</html>